package com.new_wear.project.system.group.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.new_wear.framework.aspectj.lang.annotation.Excel;
import com.new_wear.framework.web.domain.BaseEntity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 志愿者 - 志愿者团体对象 cst_volunteer_group
 * 
 * @author new_wear
 * @date 2019-12-31
 */
public class CstVolunteerGroup extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Integer id;

    /** 父级ID */
    @Excel(name = "父级ID")
    private Integer parentId;

    /** 团体名称 */
    @Excel(name = "团体名称")
    private String title;

    /** 地理X */
    @Excel(name = "地理X")
    private String areax;

    /** 地理Y */
    @Excel(name = "地理Y")
    private String areay;

    /** 团体简介 */
    @Excel(name = "团体简介")
    private String content;

    /** 组织LOGO */
    @Excel(name = "组织LOGO")
    private String logo;

    /** 团队地址 */
    @Excel(name = "团队地址")
    private String address;

    /** 是否是管理者 */
    @Excel(name = "是否是管理者")
    private Integer isMaster;

    /** 负责人名称 */
    @Excel(name = "负责人名称")
    private String master;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String mobile;

    /** 用户ID，用户自己申请的团体 */
    @Excel(name = "用户ID，用户自己申请的团体")
    private Integer uid;

    /** 管理员ID，后台添加的团队，后台管理员可管理 */
    @Excel(name = "管理员ID，后台添加的团队，后台管理员可管理")
    private Integer adminId;

    /** 是否通过0未审核，1通过，2不通过 */
    @Excel(name = "是否通过0未审核，1通过，2不通过")
    private Long isCheck;

    /** 不通过原因 */
    @Excel(name = "不通过原因")
    private String checkCase;

    /** 审核人ID */
    @Excel(name = "审核人ID")
    private Long checkAdmin;

    /** 审核时间 */
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkTime;

    /** 添加时间 */
    @Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addtime;

    /** 排序 */
    @Excel(name = "排序")
    private Integer display;

    /** 地区id */
    @Excel(name = "地区id")
    private Long areaId;

    private String perms;

    private Integer volunteerNuber;//人数

    public Integer getVolunteerNuber() {
        return this.volunteerNuber;

    }

    public void setVolunteerNuber(Integer volunteerNuber) {
        this.volunteerNuber = volunteerNuber;
    }

    public String getPerms() {
        return this.perms;

    }

    public void setPerms(String perms) {
        this.perms = perms;
    }


    private List<CstVolunteerGroup> children = new ArrayList<CstVolunteerGroup>();

    public List<CstVolunteerGroup> getChildren() {
        return this.children;

    }

    public void setChildren(List<CstVolunteerGroup> children) {
        this.children = children;
    }

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setParentId(Integer parentId)
    {
        this.parentId = parentId;
    }

    public Integer getParentId()
    {
        return parentId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setAreax(String areax) 
    {
        this.areax = areax;
    }

    public String getAreax() 
    {
        return areax;
    }
    public void setAreay(String areay) 
    {
        this.areay = areay;
    }

    public String getAreay() 
    {
        return areay;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setLogo(String logo) 
    {
        this.logo = logo;
    }

    public String getLogo() 
    {
        return logo;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setIsMaster(Integer isMaster) 
    {
        this.isMaster = isMaster;
    }

    public Integer getIsMaster() 
    {
        return isMaster;
    }
    public void setMaster(String master) 
    {
        this.master = master;
    }

    public String getMaster() 
    {
        return master;
    }
    public void setMobile(String mobile) 
    {
        this.mobile = mobile;
    }

    public String getMobile() 
    {
        return mobile;
    }
    public void setUid(Integer uid) 
    {
        this.uid = uid;
    }

    public Integer getUid() 
    {
        return uid;
    }
    public void setAdminId(Integer adminId) 
    {
        this.adminId = adminId;
    }

    public Integer getAdminId() 
    {
        return adminId;
    }
    public void setIsCheck(Long isCheck) 
    {
        this.isCheck = isCheck;
    }

    public Long getIsCheck() 
    {
        return isCheck;
    }
    public void setCheckCase(String checkCase) 
    {
        this.checkCase = checkCase;
    }

    public String getCheckCase() 
    {
        return checkCase;
    }
    public void setCheckAdmin(Long checkAdmin) 
    {
        this.checkAdmin = checkAdmin;
    }

    public Long getCheckAdmin() 
    {
        return checkAdmin;
    }
    public void setCheckTime(Date checkTime) 
    {
        this.checkTime = checkTime;
    }

    public Date getCheckTime() 
    {
        return checkTime;
    }
    public void setAddtime(Date addtime) 
    {
        this.addtime = addtime;
    }

    public Date getAddtime() 
    {
        return addtime;
    }
    public void setDisplay(Integer display) 
    {
        this.display = display;
    }

    public Integer getDisplay() 
    {
        return display;
    }
    public void setAreaId(Long areaId) 
    {
        this.areaId = areaId;
    }

    public Long getAreaId() 
    {
        return areaId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("parentId", getParentId())
            .append("title", getTitle())
            .append("areax", getAreax())
            .append("areay", getAreay())
            .append("content", getContent())
            .append("logo", getLogo())
            .append("address", getAddress())
            .append("isMaster", getIsMaster())
            .append("master", getMaster())
            .append("mobile", getMobile())
            .append("uid", getUid())
            .append("adminId", getAdminId())
            .append("isCheck", getIsCheck())
            .append("checkCase", getCheckCase())
            .append("checkAdmin", getCheckAdmin())
            .append("checkTime", getCheckTime())
            .append("addtime", getAddtime())
            .append("display", getDisplay())
            .append("areaId", getAreaId())
            .toString();
    }
}
